import request from '../utils/request'

export function getCommentList(vid, offset, type) {
    return request({
        url: '/user/comment/list',
        method: 'get',
        params: {
            vid : vid,
            offset : offset,
            type : type,
        }
    })
}

export function addComment(formData) {
    return request({
        url: '/user/comment/add',
        method: 'post',
        data: formData,
        headers: {
            'Content-Type': 'multipart/form-data'
        }
    })
}
